﻿using System;
using System.ComponentModel.DataAnnotations;

namespace HomagChina.CCT.DataTypeModel
{
    public class MachineInfo : HomagGroup.Base.UI.NotifyPropertyChangedBase
    {
        public int Id { get; set; }

        [StringLength(50)]
        public string MachinePostion { get; set; }

        private double _MachineHeight;

        public double MachineHeight
        {
            get => _MachineHeight;
            set { _MachineHeight = value; OnPropertyChanged(); }
        }

        private double _MachineWidth;

        public double MachineWidth
        {
            get => _MachineWidth;
            set { _MachineWidth = value; OnPropertyChanged(); }
        }

        private double _xposition;

        public double Xposition
        {
            get => _xposition;
            set { _xposition = value; OnPropertyChanged(); }
        }

        private double _Yposition;

        public double Yposition
        {
            get => _Yposition;
            set { _Yposition = value; OnPropertyChanged(); }
        }

        [StringLength(50)]
        public string MachineName { get; set; }

        [StringLength(50)]
        public string MachineImagePath { get; set; }

        private double _MachineImageOpactity;

        public double MachineImageOpactity
        {
            get => _MachineImageOpactity;
            set { _MachineImageOpactity = value; OnPropertyChanged(); }
        }

        [StringLength(50)]
        public string Area { get; set; }

        [StringLength(50)]
        public string Description { get; set; }

        public DateTime? CreationDate { get; set; }

        public DateTime? ModificationDate { get; set; }
    }
}